package com.example.vertification.repository;

import com.example.vertification.entity.Order;
import com.example.vertification.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.List;
import java.util.UUID;


@Repository
public interface OrderRepository extends JpaRepository<Order, Long> {


        Order findById(long id);
        Order findByOrderNumber(String ordernum);

        List<Order> findAllByProductBuyerUid(long uid);
        List<Order> findAllByProductSellerUid(long uid);




}